package com.wsl;

import com.wsl.service.ListService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author:WangShuliang
 * @Description:
 * @Date:Created in 12:45 2017/11/26
 * @Modified by:
 */
public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                 new AnnotationConfigApplicationContext();
        ListService listService = context.getBean(ListService.class);
        System.out.println(context.getEnvironment().getProperty("os.name")
                +"系统下的列表命令为:"
                +listService.showListCmd());
    }
}
